// style.scss
// 主题变量
$primary: #007aff;
$primary-dark: #4e8cff;
$secondary: #f8f9fa;
$secondary-dark: #23272e;
$bg-light: #fff;
$bg-dark: #181c20;
$text-light: #222;
$text-dark: #f3f3f3;
$border-light: #e6e6e6;
$border-dark: #333;
$shadow-light: 0 2px 8px rgba(0, 0, 0, 0.04);
$shadow-dark: 0 2px 8px rgba(0, 0, 0, 0.18);

:root {
    --primary: #{$primary};
    --secondary: #{$secondary};
    --background: #{$bg-light};
    --text: #{$text-light};
    --border: #{$border-light};
    --shadow: #{$shadow-light};
}

[data-theme='dark'] {
    --primary: #{$primary-dark};
    --secondary: #{$secondary-dark};
    --background: #{$bg-dark};
    --text: #{$text-dark};
    --border: #{$border-dark};
    --shadow: #{$shadow-dark};
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    color: var(--text);
    font-family: 'LXGW WenKai', 'Inter', system-ui, Avenir, Helvetica, Arial, sans-serif;
    transition: background 0.3s, color 0.3s;
}

#app {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.el-header {
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--background);
    border-bottom: 1px solid var(--border);
}

.navbar-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'LXGW WenKai', 'Inter', system-ui, Avenir, Helvetica, Arial, sans-serif;
    color: var(--primary);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5em;
    line-height: 1.1;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.5em;
}

button,
.el-button {
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 0.6em 1.2em;
    font-size: 1em;
    font-weight: 500;
    font-family: inherit;
    background-color: var(--primary);
    color: #fff;
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s;
}

button:hover,
.el-button:hover {
    border-color: darken($primary, 10%);
    background: darken($primary, 10%);
}

[data-theme='dark'] {

    button,
    .el-button {
        background-color: var(--primary);
        color: #fff;
    }

    .el-header {
        background: var(--background);
        border-bottom: 1px solid var(--border);
    }
}

a {
    font-weight: 500;
    color: var(--primary);
    text-decoration: inherit;
    transition: color 0.2s;
}

a:hover {
    color: darken($primary, 10%);
}

// 卡片、边框、阴影
.card,
.about-card,
.stat-card,
.calendar-card,
.post-card {
    background: var(--background);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    color: var(--text);
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}